package com.bawei.login.entity

import com.bawei.network.BaseResponse
import com.blankj.utilcode.util.GsonUtils

/**
 * Author: Jason Zhang
 * Date: 2024/5/25
 * Desc: 登录返回实体对象
 */
data class LoginResultEntity(
    val msg: String,
    val statuesCode: String,
    val values: String,
    val home: String,
) : BaseResponse(){
    fun getValues(): LoginValues {
        return GsonUtils.fromJson(values, LoginValues::class.java)
    }
}

data class LoginValues(
    val pId: Int,
    val time: String,
    val token: String,
    val uId: Int,
    val uName: String,
    val uPwd: String
)